package com.jg.controller;

import com.jg.model.dto.UserQuery;
import com.jg.model.entity.User;
import com.jg.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 86130
 * @since 2025-10-22 10:25
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("list")
    public List<User> getUserList(UserQuery query) {
        return userService.getUserList(query);
    }
}
